package com.eyas.im.protocol.protocol;

import java.util.Collections;
import java.util.List;

/**
 * IM通信协议，负责解析通信双方的身份信息
 */
public class IMIdentifierProtocol implements Protocol<Integer> {
    private int userid;
    public IMIdentifierProtocol(int userid) {
        this.userid = userid;
    }
    @Override
    public List<Integer> getMessage() {
        return Collections.singletonList(this.userid);
    }
}
